<template>
  <div class="app-container">

<!--    {{this.$route.params.code}}
 -->



    <el-form ref="form" :model="attendance" label-width="120px">
        <el-form-item label="班级:">
          <el-input v-model="attendance.clas" />
        </el-form-item>
        <el-form-item label="学号:">
          <el-input v-model="attendance.code" />
        </el-form-item>
        <el-form-item label="姓名:">
          <el-input v-model="attendance.name" />
        </el-form-item>
        <el-form-item label="出勤情况:">
          <el-input v-model="attendance.status" />
        </el-form-item>
        <el-form-item label="时间:">
          <el-input v-model="attendance.time" />
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="onSubmit">确定</el-button>
          <el-button @click="onCancel">取消</el-button>
        </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      attendance: {
        clas: '',
        code: '',
        name: '',
        status: '',
        time:'' ,
      }
    }
  },
  methods: {
    onSubmit() {
      this.$message('submit!')
    },
    onCancel() {
      this.$message({
        message: 'cancel!',
        type: 'warning'
      })
    }
  }
}
</script>

<style scoped>
.line{
  text-align: center;
}
</style>
